﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SimpleExcel.Core.Attributes
{
    public class ExcelColumnAttribute : Attribute
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderBy { get; set; }

        /// <summary>
        /// 宽度
        /// </summary>
        public int Width { get; set; }

        /// <summary>
        /// 格式化字符
        /// </summary>
        public string Formatter { get; set; }

        public ExcelColumnAttribute(string title, int orderBy = 0, int width = 0,string formatter = null)
        {
            Title = title;
            OrderBy = orderBy;
            Width = width;
            Formatter = formatter;
        }
    }
}
